package com.system.xingzhi.service;

import com.system.xingzhi.model.ReturnData;
import com.system.xingzhi.model.Role;
import com.system.xingzhi.model.RoleAndPage;
import com.system.xingzhi.model.User;

import java.util.List;
import java.util.Map;

public interface RoleService {
    ReturnData deleteByPrimaryKey(String roleId);

    ReturnData insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(String roleId);

    int updateByPrimaryKeySelective(Role record);

    ReturnData updateByPrimaryKey(Role record);

    ReturnData selectByParameter(Map<String,String> map,Integer pageNum, Integer pageSize);

    ReturnData addRolePage(String roleId, String pageId);

    ReturnData deleteRolePage(String rolePageId);

    ReturnData queryRolePage(Map<String, String> map);
}
